
cc.Class({
    extends: cc.Component,

    properties: {
        myGold: cc.Node,
        labelGold: cc.Label
    },

    onLoad() {
        this.getMyGold()
    },

    getMyGoldNode(){
        return this.myGold
    },


    getMyGold(){
        this.labelGold.string = data.getMyGold()
    },


    getWorldPos(){
        return utils.getNodePos(this.myGold, game.node)
    }


 

    // update (dt) {},
});
